Skip to content

Add Srpski (Cyrillic) #3860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

Add Srpski (Cyrillic) #3860

wants to merge 3 commits into from

Conversation

taooceros
Copy link
Member

No description provided.

Copilot

This comment was marked as outdated.

@coderabbitai coderabbitai bot added the enhancement New feature or request label Jul 23, 2025
Copy link

gitstream-cm bot commented Jul 23, 2025

🥷 Code experts: Jack251970

Jack251970 has most 🧠 knowledge in the files.

See details

Flow.Launcher.Core/Resource/AvailableLanguages.cs

Knowledge based on git-blame:
Jack251970: 33%

✨ Comment /gs review for LinearB AI review. Learn how to automate it here.

Copy link

gitstream-cm bot commented Jul 23, 2025

Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX.

Copy link
Contributor

coderabbitai bot commented Jul 23, 2025

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

📝 Walkthrough

Walkthrough

Added a Serbian Cyrillic language variant ("sr-Cyrl-RS") to available languages and updated system translation mappings to distinguish Serbian Latin ("sr") from Serbian Cyrillic ("sr-Cyrl-RS"), changing "sr" translation and adding an entry for "sr-Cyrl-RS".

Changes

Cohort / File(s) Change Summary
Language Variant Addition and Translation Update
Flow.Launcher.Core/Resource/AvailableLanguages.cs
Added Serbian_Cyrillic language variant with code "sr-Cyrl-RS" and name "Српски". Updated GetAvailableLanguages() to include it. Changed system translation for "sr" from "Систем" to "Sistem" and added "Систем" for "sr-Cyrl-RS".

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant AvailableLanguages

    User->>AvailableLanguages: GetAvailableLanguages()
    AvailableLanguages-->>User: List includes Serbian_Cyrillic ("sr-Cyrl-RS")

    User->>AvailableLanguages: GetSystemTranslation("sr")
    AvailableLanguages-->>User: "Sistem"

    User->>AvailableLanguages: GetSystemTranslation("sr-Cyrl-RS")
    AvailableLanguages-->>User: "Систем"
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

Possibly related PRs

Suggested reviewers

  • jjw24

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch taooceros-patch-1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1da7e1e and 1660369.

📒 Files selected for processing (1)
  • Flow.Launcher.Core/Resource/AvailableLanguages.cs (3 hunks)
🧠 Learnings (1)
Flow.Launcher.Core/Resource/AvailableLanguages.cs (2)

Learnt from: taooceros
PR: #2616
File: Flow.Launcher/Flow.Launcher.csproj:7-7
Timestamp: 2024-10-08T15:52:58.573Z
Learning: In the Flow Launcher project, the version number in the Flow.Launcher.csproj file is dynamically updated during the CI/CD process.

Learnt from: Jack251970
PR: #3850
File: Flow.Launcher.Core/Resource/Internationalization.cs:0-0
Timestamp: 2025-07-20T07:28:28.092Z
Learning: In Flow Launcher's Internationalization class, when the Flow Launcher language directory or default language file is missing, the only viable approach is to log an error and return early - there are no fallback mechanisms or alternative recovery strategies available due to architectural constraints.

🧰 Additional context used
🧠 Learnings (1)
Flow.Launcher.Core/Resource/AvailableLanguages.cs (2)

Learnt from: taooceros
PR: #2616
File: Flow.Launcher/Flow.Launcher.csproj:7-7
Timestamp: 2024-10-08T15:52:58.573Z
Learning: In the Flow Launcher project, the version number in the Flow.Launcher.csproj file is dynamically updated during the CI/CD process.

Learnt from: Jack251970
PR: #3850
File: Flow.Launcher.Core/Resource/Internationalization.cs:0-0
Timestamp: 2025-07-20T07:28:28.092Z
Learning: In Flow Launcher's Internationalization class, when the Flow Launcher language directory or default language file is missing, the only viable approach is to log an error and return early - there are no fallback mechanisms or alternative recovery strategies available due to architectural constraints.

🔇 Additional comments (2)
Flow.Launcher.Core/Resource/AvailableLanguages.cs (2)

20-20: LGTM! Proper BCP 47 language code and Cyrillic display name.

The Serbian Cyrillic language definition follows the correct BCP 47 standard ("sr-Cyrl-RS") and uses the appropriate Cyrillic script display name "Српска".


51-51: LGTM! Correctly added to the available languages list.

The Serbian_Cyrillic language is properly added to the list in a logical position after the existing Serbian entry.

Jack251970
Jack251970 previously approved these changes Jul 23, 2025
Copy link
Member

@jjw24 jjw24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both rabbit and copilot raised issues,are they relevant?

@taooceros
Copy link
Member Author

Both rabbit and copilot raised issues,are they relevant?

oh sorry I think so. I misunderstand it before.

Copilot

This comment was marked as outdated.

@jjw24

This comment was marked as duplicate.

This comment was marked as duplicate.

@jjw24
Copy link
Member

jjw24 commented Jul 31, 2025

@coderabbitai full review

Copy link
Contributor

coderabbitai bot commented Jul 31, 2025

✅ Actions performed

Full review triggered.

@Jack251970
Copy link
Member

@coderabbitai full review

@Jack251970 Jack251970 requested a review from Copilot July 31, 2025 12:56
Copy link
Contributor

coderabbitai bot commented Jul 31, 2025

✅ Actions performed

Full review triggered.

Copilot

This comment was marked as outdated.

@jjw24
Copy link
Member

jjw24 commented Aug 4, 2025

@Jack251970 @taooceros not sure if the low confidence suggestion from Copilot needs addressing.

@Jack251970
Copy link
Member

  • Ср

I think so.

image

Changed as request

@Jack251970 Jack251970 requested a review from Copilot August 16, 2025 03:41
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for Serbian Cyrillic as a separate language option in Flow Launcher, distinguishing it from the existing Serbian Latin variant.

  • Adds Serbian Cyrillic language definition with appropriate locale code and native name
  • Updates the translation system to distinguish between Serbian Latin and Cyrillic variants
  • Corrects the existing Serbian entry to use Latin script representation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Jack251970 Jack251970 added this to the 2.0.0 milestone Aug 16, 2025
@Jack251970 Jack251970 requested a review from jjw24 August 16, 2025 03:43
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
Flow.Launcher.Core/Resource/AvailableLanguages.cs (1)

84-85: System translation: Latin vs. Cyrillic split is correct; consider adding common alias tags and silence the spell-check warning

  • "sr" => "Sistem" (Latin) and "sr-Cyrl-RS" => "Систем" (Cyrillic) is correct and aligns with your autonyms.
  • For robustness with OS/culture codes, consider handling additional aliases frequently seen in the wild (sr-Latn, sr-Latn-RS, sr-Cyrl). This avoids falling back to the default "System" when those tags are encountered.

Apply this diff to add aliases:

-                "sr" => "Sistem",
-                "sr-Cyrl-RS" => "Систем",
+                "sr" => "Sistem",
+                "sr-Latn" => "Sistem",
+                "sr-Latn-RS" => "Sistem",
+                "sr-Cyrl" => "Систем",
+                "sr-Cyrl-RS" => "Систем",

Nit: The spell-check warning on "Sistem" is a false positive; it is the correct Serbian (Latin) spelling. If your CI uses a spell checker, add "Sistem" to its allowlist to silence the warning.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 7664944 and d8f8de2.

📒 Files selected for processing (1)
  • Flow.Launcher.Core/Resource/AvailableLanguages.cs (3 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
Flow.Launcher.Core/Resource/AvailableLanguages.cs (1)
Flow.Launcher.Core/Resource/Internationalization.cs (1)
  • Language (171-184)
🪛 GitHub Check: Check Spelling
Flow.Launcher.Core/Resource/AvailableLanguages.cs

[warning] 84-84:
Sistem is not a recognized word. (unrecognized-spelling)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: gitStream.cm
  • GitHub Check: build
🔇 Additional comments (2)
Flow.Launcher.Core/Resource/AvailableLanguages.cs (2)

51-51: Included in GetAvailableLanguages — LGTM

The new Serbian (Cyrillic) variant is correctly added to the returned list and positioned next to Serbian (Latin).


20-20: Serbian (Cyrillic) resource coverage and fallback

No dedicated sr-Cyrl-RS resource files were found; by default, the runtime will fall back to the neutral sr pack (e.g. Flow.Launcher/Languages/sr.xaml and all */Languages/sr.xaml in plugins). Please verify:

  • That the existing sr.xaml translations are in Cyrillic so users don’t see Latin text when selecting “Српски”.
  • If they’re not Cyrillic, add sr-Cyrl-RS-named resource files (or alias sr-Cyrl-RSsr after converting to Cyrillic).
  • The fallback chain (sr-Cyrl-RSsr → default) behaves as intended.

Also note in AvailableLanguages.cs (around line 85) you map "sr-Cyrl-RS" to "Систем" in GetSystemTranslation. Ensure that aligns with the rest of the pack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 min review enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants